package com.pb.infra.taskManage.service;

import com.pb.infra.oth.entity.common.Result;
import com.pb.infra.taskManage.mapper.TaskSelectMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 *任务配置
 * @author liaohaoyuan
 * @date 20210501
 */
@Service
public class TaskSelectService {

    /**
     * DAO映射对象
     */
    @Resource
    private TaskSelectMapper taskSelectMapper;

    /**
     * 获取数据库数据
     * @return
     */
    public List<Map<String,Object>> getJobTypeList(){
        List<Map<String,Object>> list =taskSelectMapper.getJobTypeList();
        return list;
    }

    /**
     * 获取数据库数据
     * @return
     */
    public List<Map<String,Object>> getCmdTypeList(){
        List<Map<String,Object>> list =taskSelectMapper.getCmdTypeList();
        return list;
    }

    /**
     * 获取数据库数据
     * @return
     */
    public List<Map<String,Object>> getJobFreqList(){
        List<Map<String,Object>> list =taskSelectMapper.getJobFreqList();
        return list;
    }

    /**
     * 获取数据库数据
     * @return
     */
    public List<Map<String,Object>> getJobGroupList(){
        List<Map<String,Object>> list =taskSelectMapper.getJobGroupList();
        return list;
    }

    /**
     * 获取数据库数据
     * @return
     */
    public List<Map<String,Object>> getGroupNameList(){
        List<Map<String,Object>> list =taskSelectMapper.getGroupNameList();
        return list;
    }

    /**
     * 获取数据库数据
     * @return
     */
    public List<Map<String,Object>> getJobStatusList(){
        List<Map<String,Object>> list =taskSelectMapper.getJobStatusList();
        return list;
    }

}
